import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)


const router = new VueRouter({
  routes: [
    { path: '/', redirect: '/home' },
    { path: '/home', component: () => import('@/views/首页/home.vue') },
    { path: '/fen', component: () => import('@/views/分类/fen.vue') },
    { path: '/zhuan', component: () => import('@/views/专题/zhuan.vue') },
    { path: '/cart', component: () => import('@/views/购物车/cart.vue') },
    { path: '/my', component: () => import('@/views/我的/my.vue') },

    { path: '/map', component: () => import('@/components/首页/地图/map.vue') },
    { path: '/sousuo', component: () => import('@/components/首页/搜索页面/sousuo.vue') },
    { path: '/xiangqing', component: () => import('@/components/商品详情（新品首发与）/xiangqing.vue') },
    { path: '/fenzi', component: () => import('@/components/分栏子导航/fenzi.vue') },
    { path: '/pinpai', component: () => import('@/components/品牌制造商/pinpai.vue') },
    { path: '/ppxq', component: () => import('@/components/品牌制造商/pingpaixiangqing.vue') },
    { path: '/zxq', component: () => import('@/components/专题/zhuanxiangqing.vue') },
    {
      path: '/goumai',
      component: () => import('@/components/商品信息浏览购买/gouMai.vue')
    },
    { path: '/dingdan', component: () => import('@/components/商品信息浏览购买/下单功能/dingdan.vue') },
    { path: '/dizhi', component: () => import('@/components/商品信息浏览购买/收货地址/dizhi.vue') },
    { path: '/bianxiedizhi', component: () => import('@/components/商品信息浏览购买/收货地址/bianxiedizhi.vue') }
  ]
})

export default router
